home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / 360catcher.swf / scripts / frame_1 / PlaceObject2_150_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-07-21  |  383 b   |  16 lines

  1. onClipEvent(enterFrame){
  2.    var loadedb = _root.getBytesLoaded();
  3.    if(loadedb == totalb)
  4.    {
  5.       _root.gotoAndStop(2);
  6.    }
  7.    else
  8.    {
  9.       loadedkb = int(loadedb / 1024);
  10.       percent = loadedb / totalb * 100;
  11.       _root.bar._width = barwidth / 100 * percent;
  12.       pl1 = "" + int(percent) + "%";
  13.       pl2 = "" + loadedkb + " / " + totalkb + " kb";
  14.    }
  15. }
  16.